@extends('layout')
@section('css')
@endsection
@section('content')
<div>
    <div class="sign">
        签到
    </div>
</div>
@endsection
@section('script')
<script>
    $('.sign').on('click',function(){
        $.ajax({
            url:'/sign',
            data:{'u_id':123},
            dataType:'JSON',
            type:'POST',
            success:function(data){
                console.log(data);
            }
        })
    });
</script>
@endsection